package com.tianji.learning.task;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DemoTaskHandler {

    @XxlJob("demoTaskHandler")
    public void demoTaskHandler(){
        log.info("demoTaskHandler start");
        XxlJobHelper.log("demoTaskHandler start");
    }

}
